let buffer1 = Buffer.from("abcd");
let buffer2 = Buffer.from("xyz");

buffer2.copy(buffer1, 2);

console.log(buffer1.toString());